package de.homelabs.moonrat.exception;

public enum MoonratErrorCode {

	INITIALIZATION_ERROR("initialization_failed", "Initialization error: "), 
	FALLBACK_TEMPLATE_NOT_FOUND("fallback_template_not_found", "The fallback template could not be found: "),
	TEMPLATE_NOT_FOUND("template_not_found", "The requested Template could not be found: "),
	PROCESSING_TEMPLATE_FAILED("processing_template_failed", "Error processing template: "),
	PAGE_NOT_FOUND("page_not_found", "Requested page could not be found: "),
	MEDIA_FILE_NOT_FOUND("media_file_not_found", "Requested media file could not be found!");
	
	private String langKey;
	private String defaultMessage;
	
	private MoonratErrorCode(String langKey, String defaultMessage){
		this.langKey = langKey;
		this.defaultMessage = defaultMessage;
	}
	
	public String getLangKey(){
		return this.langKey;
	}
	
	public String getDefaultMessage(){
		return this.defaultMessage;
	}
}
